package com.yq.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yq.entity.Healthregistration;
import com.yq.dao.HealthregistrationDao;
import com.yq.entity.Healthregistrationd;
import com.yq.entity.companys;
import com.yq.service.HealthregistrationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * @author zxn
 * @date 2020-03-16
 * @description  服务实现类
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class HealthregistrationServiceImpl extends ServiceImpl<HealthregistrationDao, Healthregistration> implements HealthregistrationService {

    @Override
    public List<companys> tongji() {
        return baseMapper.tongji();
    }

    @Override
    public Page<Healthregistrationd> listd(Wrapper wrapper, IPage iPage) {
        return baseMapper.listd(wrapper, iPage );
    }
}
